-- GENERATED SPELL FOR [Anub'ar Assassin] --


function spell0_29214(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(52540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29214', 587, 1)
end

function Sorts_29214(pUnit, Event)
local choix_sorts_29214 = math.random(0, 0)
if choix_sorts_29214 == 0 then
pUnit:RegisterEvent('spell0_29214', 1, 1)
end
end

function mob29214_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29214', math.random(1500, 3000), 1)
end

function mob29214_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29214_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29214_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29214, 1, 'mob29214_Action')
RegisterUnitEvent(29214, 2, 'mob29214_Leave')
RegisterUnitEvent(29214, 3, 'mob29214_Kill')
RegisterUnitEvent(29214, 4, 'mob29214_Die')
